package com.kt.emall.order.feign;

import com.kt.emall.order.vo.MemberAddressVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @program: e-mall
 * @description: 远程调用会员服务
 * @author: KamTang
 * @create: 2022-02-10 09:40
 **/
@FeignClient("emall-member")
public interface MemberFeignService {

    /**
     * 根据会员id获取地址
     * @param memberId
     * @return
     */
    @GetMapping("/member/receiveAddress/{memberId}/addresses")
    List<MemberAddressVO> getAddress(@PathVariable("memberId") Long memberId);

}
